package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckGroup;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

public interface CheckGroupService {

    //添加检查组
    void add(CheckGroup checkGroup, Integer[] checkitemIds);

    //分页查询
    PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    //查询id并修改
    CheckGroup findById(Integer id);

    //根据检查组ID查询关联的检查项ID
    List<Integer> findCheckItemIdsByCheckGroupId(Integer id);

    //编辑修改
    void edit(CheckGroup checkGroup, Integer[] checkitemIds);

    //删除检查项
    void deleteById(Integer id);

    //查询弹框数据
    List<CheckGroup>findAll();
}
